package org.model.conf;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.context.annotation.Configuration;

/**
* @Author: 无恙
* @Description: 大模型配置信息
*/
@Configuration
@RefreshScope
public class BigModelConf {

    /**
     * 模型主机地址
     */
    public static  String hostUrl ;

    /**
     * APPID
     */
    public static  String appid ;
    /**
     * API密钥
     */
    public static  String apiSecret ;
    /**
     * APIKEY
     */
    public static  String apiKey ;

    @Value("${xfyun.hostUrl}")
    public  void setHostUrl(String hostUrl) {
        BigModelConf.hostUrl = hostUrl;
    }
    @Value("${xfyun.appid}")
    public  void setAppid(String appid) {
        BigModelConf.appid = appid;
    }
    @Value("${xfyun.apiSecret}")
    public  void setApiSecret(String apiSecret) {
        BigModelConf.apiSecret = apiSecret;
    }
    @Value("${xfyun.apiKey}")
    public  void setApiKey(String apiKey) {
        BigModelConf.apiKey = apiKey;
    }
}
